package cn.com.entity;

/**
 * <p>Project:Academic - User
 *
 * @author 黄俊玮 On Administrator
 * @version 1.0
 * @DataTime 2024/6/14 09:27:44
 * @since 1.8
 */
public class User {
    private int id;
    private String name;
    private int phone;
    private String pwd;
    private int role;
    private String clazz;

    public User(int id, String name, int phone, String pwd, int role, String clazz) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.pwd = pwd;
        this.role = role;
        this.clazz = clazz;
    }

    public User() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPhone() {
        return phone;
    }

    public void setPhone(int phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone=" + phone +
                ", pwd='" + pwd + '\'' +
                ", role=" + role +
                ", clazz='" + clazz + '\'' +
                '}';
    }
}
